/**
 * @Author: 罗显
 * @CreateTime: 2025-04-30
 * @Version: 1.0
 */


package com.it.user.service;

import com.it.user.entity.UserEntity;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface UserService {

    UserEntity login(String username, String password);

    UserEntity findUserByUsername(String username);

    UserEntity register(UserEntity userEntity);

    void lockUserById(Long id, UserEntity.UserStatus userStatus);

    UserEntity findUserById(Long id);

    boolean updateUserById(UserEntity userEntity);

    boolean updatePassword(Long id, String password);
}